<include file="Public/header" />
        <div class="comm-top">
            <h4 style="margin-bottom:0">条款设置</h4>
            <div class="add_page_top"></div>
        </div>
        <form id="dataFrom" onsubmit="return false;">
            <input type="hidden" name="info[id]" value="{$info.id}" />
            <div class="shop_sort_box">
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4><must>*</must>付款条款说明：</h4></div>
                    <div class="shop_sort_set">
                        <textarea  id="pay_item" name="info[pay_item]" style="height:210px;width:600px;">{$info.pay_item}</textarea>
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4><must>*</must>接力条款说明：</h4></div>
                    <div class="shop_sort_set">
                        <textarea  id="relay_item" name="info[relay_item]" style="height:210px;width:600px;">{$info.relay_item}</textarea>
                    </div>
                </div>
          
                <div class="shop_sort">
                    <div class="shop_sort_title">
                        <h4>&nbsp;</h4>
                    </div>
                    <div class="shop_sort_set">
                        <span onclick="save(this);return false" id="saveBtn" class="btngreen30">完成</span>
<!--                         &nbsp;&nbsp;&nbsp; -->
<!--                         <span onclick="history.go(-1);" class="btngray30">返回</span> -->
                    </div>
                </div>
            </div>
        </form>
<!-- 上传图片结束 -->
<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
<script>
$(function(){
    //初始化编辑器
    UE.getEditor('pay_item', {
        toolbars: [['source','bold','italic','underline','fontsize','forecolor','backcolor','pasteplain',
        'insertorderedlist','cleardoc','link','simpleupload','emotion','map','inserttable',
        //'insertimage',//多图上传
        ]]
    });
    UE.getEditor('relay_item', {
        toolbars: [['source','bold','italic','underline','fontsize','forecolor','backcolor','pasteplain',
        'insertorderedlist','cleardoc','link','simpleupload','emotion','map','inserttable',
        //'insertimage',//多图上传
        ]]
    });
});
function save(obj){
    $.post('{:U("")}',$('#dataFrom').serialize(),function(res){
        if(res.status == 1){
            note_info(res.info,obj);
            setTimeout('window.location.reload()',1200);
        }else{
            note_info(res.info,obj,'warn');
        }
    })
}
</script>
<include file="Public/footer"/>
